<template>
  <div>
    <Header></Header>
    <Banner></Banner>
    <div class="main">
      <div class="main-left">
        <li  @click="$router.push('/wz')" v-if="this.author == 2">
          <i class="iconfont icon-all-wenzhang"></i>
          我的文章
        </li>
        <li  @click="$router.push('/sc')">
          <i class="iconfont icon-all-xiangqu"></i>
          我的收藏
        </li>
        <li  @click="$router.push('/wd')">
          <i class="iconfont icon-all-wendabangzhu"></i>
          我的问答
        </li>
        <li class="active"  @click="$router.push('/pl')">
          <i class="iconfont icon-all-pinglun"></i>
          我的评论
        </li>
        <li  @click="$router.push('/dy')">
          <i class="iconfont icon-all-yonghuming"></i>
          我的订阅
        </li>
        <li  @click="$router.push('/ds')">
          <i class="iconfont icon-all-qian"></i>
          我的打赏
        </li>
        <li  @click="$router.push('/tz')">
          <i class="iconfont icon-all-tongzhi"></i>
          通知中心
        </li>
        <li  @click="$router.push('/ll')">
          <i class="iconfont icon-all-liulan"></i>
          浏览记录
        </li>
        <li  @click="$router.push('/sz')">
          <i class="iconfont icon-all-icon_setting"></i>
          资料设置
        </li>
      </div>
      <div class="main-right">
        <div class="nav">
          <span v-bind:class="{ active1: isActive1}">我的评论（1）</span>
        </div>
        <div v-if="no" style="text-align: center; font-size:16px;padding-top:10px;">您还没有发表评论</div>
        <div class="content" v-if="yes">
          <div class="content-item">
            <div class="title">
              <span>不错</span>
              <i class="iconfont icon-all-shanchu"></i>
            </div>
            <div class="pl">
              <span>您还没有发表评论</span>
              <span class="time">
                <i class="iconfont icon-all-tubiao-"></i>
                2019-12-19 16:48:56
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
import Header from "@/common/Header/Header";
import Footer from "@/common/Footer/Footer";
import Banner from "@/common/Banner/Banner";
export default {
  name: "pl",
  data() {
    return {
      no: false,
      yes: true,
      isActive1: true,
      author:'',
    };
  },
  methods: {},
  mounted(){
    this.author =this.getCookie("identity_type") 
  },
  components: {
    Header,
    Banner,
    Footer
  }
};
</script>
<style lang="scss" scoped>
.main {
  width: 60%;
  height: auto;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  .main-left {
    width: 230px;
    background-color: #fff;
    li {
      padding: 20px;
      list-style: none;
      border-left: 1px solid transparent;
      font-size: 18px;
      cursor: pointer;
    }
    .active {
      background-color: #f2f5fb;
      border-left: 1px solid #5079b7;
      color: #5079b7;
    }
  }
  .main-right {
    text-align: left;
    width: 900px;
    background-color: #fff;
    padding: 20px;
    margin-left: 30px;
    .nav {
      line-height: 1.8;
      border-bottom: 1px solid #5079b7;
      span {
        padding-bottom: 8px;
        display: inline-block;
        margin-right: 10px;
      }
      .active1 {
        color: #5079b7;
        border-bottom: 1px solid #5079b7;
      }
      .money {
        margin-left: 325px;
      }
    }
    .content {
      .content-item {
        border-bottom: 1px solid #999;
        .title {
          display: flex;
          justify-content: space-between;
          color: rgba(0, 0, 0, 0.8);
          margin-top: 5px;
          font-size: 14px;
        }
        .pl {
          display: flex;
          justify-content: space-between;
          color: #a5aab0;
          font-size: 14px;
          padding-bottom: 10px;
        }
      }
    }
  }
}
</style>


